package org.example.commerce.imp;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

@Slf4j
@SpringBootApplication
@EnableTransactionManagement
@ServletComponentScan
@ComponentScan("org.example")
@MapperScan("org.example.commerce.dao")
public class CommerceServiceApplication {
    public static void main(String[] args){
        SpringApplication.run(CommerceServiceApplication.class, args);
        log.info("Successfully started the project");

    }
}
